package com.qianfeng.service;

import com.qianfeng.entity.Patient;
import com.qianfeng.entity.PatientSta;
import com.qianfeng.entity.ProSta;

import java.util.List;
import java.util.Map;

/**
 * 服务层的接口
 * 制定的服务层能做的事情
 */
public interface PatientService {

    List<ProSta> queryProSta();

    List<ProSta> queryProStaByCity(String city);

    List<ProSta> queryProStaByProvince(String province);

    List<Patient> queryPatient(String city);

    List<Patient> queryProvincePatient(String province);

    boolean addPatient(Patient patient);

    boolean updatePatient(Patient patient);

    boolean deletePatient(Integer patientId);

    /**
     * 根据状城市获取数量zy
     * @return
     */
    Map<String, Integer> getCount(String city);


    Map<String, Integer> getProvinceCount(String city);

    Patient getPatientById(Integer id); //my
}
